#!/bin/sh

[ $# -ne 2 ] && { echo "Usage $0 [originPassword] [salt].";exit 1; }

java -cp jasypt-1.9.2.jar org.jasypt.intf.cli.JasyptPBEStringEncryptionCLI input="$1" password=$2 algorithm=PBEWithMD5AndDES | sed -ne '/OUTPUT/,//p'